//
//  GL_MovingEntity.m
//  RecipeCollection02
//
//  Created by Louis CHU on 02/03/12.
//  Copyright (c) 2012 Nathan Burba. All rights reserved.
//

#import "GL_MovingEntity.h"
#import "GL_TestCollision.h"
#import "IsoGLESRender.h"

@implementation GL_MovingEntity
@synthesize velocity,heading, speed,mass, maxSpeed,maxForce,maxTurnRate;

- (b2Vec2) velocity
{
    
    b2Vec2 vel = body->GetLinearVelocity();
    vel *= PTM_RATIO;
    return vel;
}

- (float) speed
{
    return self.velocity.Length() * PTM_RATIO;
}

- (void) update: (float) elapsedTime
{
    
}
- (void) draw
{
    IsoGLESDebugDraw * renderDebugDraw = new IsoGLESDebugDraw();
    renderDebugDraw->DrawSegment(b2Vec2(0,0), b2Vec2(1,1), b2Color(0, 0, 0));
}

@end
